<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('香烟流水列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>

							<li>
								房间号：<input type="text" name="fjh"/>
							</li>

							<li>
								名称：<input type="text" name="mc"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm" id="toolbar" role="group">
				<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="web:tXyBill:export">
						<i class="fa fa-download"></i> 导出
				 </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('web:tXyBill:edit')}]];
        var removeFlag = [[${@permission.hasPermi('web:tXyBill:remove')}]];
        var prefix = ctx + "web/tXyBill";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "香烟流水",
		        showExport: true,
                columns: [
				{
					field : 'id', 
					title : 'ID',
					visible: false
				},
				{
					field : 'fjh', 
					title : '房间号',
					sortable: true
				},
				{
					field : 'mc', 
					title : '名称',
					sortable: true
				},
				{
					field : 'jg', 
					title : '价格',
					sortable: true
				},
				{
					field : 'sl', 
					title : '数量',
					sortable: true
				},
				{
					field : 'txsj', 
					title : '时间',
					sortable: true
				}
				]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>